package com.hst.web.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.HSID;
import com.hst.core.dao.BaseEntity;

@Entity
@Table(name = "t_vehicle_config")
@Comment("车辆属性配置表")
@HSID(length = 10, prefix = "A", resetByDay = true)
public class TVehicleConfig extends BaseEntity {

	@Id
	@Column(name = "id", length = 10)
	@GeneratedValue(generator = "hsid")
	@GenericGenerator(name = "hsid", strategy = "com.hst.core.hbm.HSIDGenerator")
	private String id;

	@Column(name = "vehicle_type", length = 4) // 两个监听属性只填一个
	private String vehicleType;

	@Column(name = "use_character", length = 4) //
	private String useCharacter;

	@Column(name = "name", length = 255)
	private String name;

	@Column(name = "title", length = 255)
	private String title;

	@Column(name = "viewer", length = 32)
	private String viewer;

	@Column(name = "view_args", length = 32)
	private String viewArgs;

	@Column(name = "editor", length = 32)
	private String editor;

	@Column(name = "editor_args", length = 32)
	private String editorArgs;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getVehicleType() {
		return vehicleType;
	}

	public void setVehicleType(String vehicleType) {
		this.vehicleType = vehicleType;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getViewer() {
		return viewer;
	}

	public void setViewer(String viewer) {
		this.viewer = viewer;
	}

	public String getViewArgs() {
		return viewArgs;
	}

	public void setViewArgs(String viewArgs) {
		this.viewArgs = viewArgs;
	}

	public String getEditor() {
		return editor;
	}

	public void setEditor(String editor) {
		this.editor = editor;
	}

	public String getEditorArgs() {
		return editorArgs;
	}

	public void setEditorArgs(String editorArgs) {
		this.editorArgs = editorArgs;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUseCharacter() {
		return useCharacter;
	}

	public void setUseCharacter(String useCharacter) {
		this.useCharacter = useCharacter;
	}

}
